/* 全局样式 */
:root {
  --primary-color: #85ded8; /* 主题颜色 */
  --secondary-color: #c2b2de;
  --text-color: #333; /* 主要文字颜色 */
  --accent-color: #ff5370; /* 新的强调颜色 */
  --font-family: 'Segoe UI', 'Arial', sans-serif; /* 现代字体更新 */
  --button-border-radius: 50px; /* 完全圆形边缘 */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器样式 */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  width: 100%;
  background-color: var(--background-color);
  border-radius: 30px; /* 圆角增加 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: var(--font-family);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background: linear-gradient(270deg, #fbc2eb, #a6c1ee, #a3dee4, #aaa0d4);
  background-size: 800% 800%;
  animation: gradientBG 15s ease infinite;
}

.content {
  width: 100%;
  max-width: 900px; /* 调整宽度以更好地适应内容 */
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px; /* 圆角增加 */
  padding: 2rem;
}

/* 头像和文字样式 */
.avatar {
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  background: url('../背景1.jpg') no-repeat center/cover; /* 修正路径和背景设置 */
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.text-row {
  margin-bottom: 1.5rem;
}

.hello-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-color);
}

.dirtext{
  color: var(--text-color);
  font-size: 20px;
}

/* 按钮样式 */
.btn {
  font-size: 0.85rem; /* Smaller font size */
  color: white;
  background-color: var(--primary-color);
  border-radius: 50px; /* Fully round edges */
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  margin-right: 10px; /* Spacing between buttons */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
}

.button-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  justify-content: space-between; /* 更好的空间利用 */
}

/* 按钮样式 */
.button-group {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  justify-content: center
}

.button-group.btn {
  margin-left: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.button-group .look {
  background-image: linear-gradient(to right, #85ded8, #ceb7e6);
  border: none;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button-group .look:hover {
  background-image: linear-gradient(to right, #ceb7e6, #85ded8);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.button-group .delete{
  background-color: #e1bbb7;
  border: none;
  color: #fff;
  box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
}

.button-group .delete:hover {
  box-shadow: 0 6px 8px rgba(81, 18, 68, 0.4);
}

.button-group .gene{
  background-color: #9ccc0e;
  border: none;
  color: #fff;
  box-shadow: 0 4px 6px rgba(28, 165, 87, 0.3);
}

.button-group .gene:hover {
  background-color: #d2f3df;
  box-shadow: 0 6px 8px rgba(39, 174, 96, 0.4);
}
/* 搜索框样式 */
.search-bar {
  margin-bottom: 1.5rem;
  position: relative;
  color: #85ded8;
}

/* 地点列表样式 */
.place-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1.5rem;
  justify-content: center
}

.box-card {
  transition: box-shadow 0.3s;
  justify-content: center;
  overflow: hidden
}

.box-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.place-name {
  font-weight: bold;
  margin-right: 1rem;
  font-size: 1.2rem;
}


.place-card {
  font-family: 'Courier New', monospace;
  background-color: white;
  border: 2px solid black;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" fill="%23f7f7f7"><rect x="50" width="50" height="50"/><rect y="50" width="50" height="50"/></svg>'); /* Simple grid pattern */
  background-size: 20px 20px;
  justify-content: center;
}

.place-header h3 {
  margin: 0;
  font-size: 1.5rem;
  border-bottom: 1px solid black;
  padding-bottom: 5px;
}

.place-details p {
  margin: 10px 0;
  font-size: 1rem;
  color: #666; /* 调整字体颜色以减少对比强度 */
}

.place-footer {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}
